package com.zzl.finance.data.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.zzl.apidoc.annotation.ApidocModel;
import com.zzl.apidoc.annotation.ApidocModelProperty;
import lombok.Data;

/**
 * 企业表
 *
 * @author gull
 * @date 2022-07-01 18:23:10
 */
@Data
@TableName("b_enterprise")
@ApidocModel
@SuppressWarnings("javadoc")
public class EnterpriseEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.UUID)
    @ApidocModelProperty(description = "主键")
    private String id;
    @ApidocModelProperty(description = "企业名称")
    private String enterpriseName;
    @ApidocModelProperty(description = "社会统一代码")
    private String socialCreditCode;
    @ApidocModelProperty(description = "企业规模A:1-19人B:20-50人C:51-100人D:101-200人E:201-500人F:501-1000人G:1001-9999人H:10000人及以上")
    private String scale;
    @ApidocModelProperty(description = "公司logo地址")
    private String companyLogo;
    @ApidocModelProperty(description = "邮箱")
    private String enterpriseEmail;
    @ApidocModelProperty(description = "电话")
    private String enterprisePhone;
    @ApidocModelProperty(description = "传真")
    private String fax;
    @ApidocModelProperty(description = "注册省份")
    private String province;
    @ApidocModelProperty(description = "注册城市")
    private String city;
    @ApidocModelProperty(description = "注册区县")
    private String area;
    @ApidocModelProperty(description = "地址id")
    private String areaId;
    @ApidocModelProperty(description = "企业注册详细地址")
    private String address;
    @ApidocModelProperty(description = "办公地址")
    private String mailAddress;
    @ApidocModelProperty(description = "营业执照")
    private String businessLicense;
    @ApidocModelProperty(description = "管理员委托授权书")
    private String adminPowerAttorney;
    @ApidocModelProperty(description = "法人身份证正面")
    private String frontIdentityCard;
    @ApidocModelProperty(description = "法人身份证反面")
    private String backIdentityCard;
    @ApidocModelProperty(description = "管理员证件正面地址")
    private String certificatesFront;
    @ApidocModelProperty(description = "管理员证件反面地址")
    private String certificatesBack;
    @ApidocModelProperty(description = "审核状态，0平台审核中，1认证成功，2审核未通过")
    private Integer approveStatus;
    @ApidocModelProperty(description = "审核备注")
    private String approveRemark;
    @ApidocModelProperty(description = "停用状态：0已停用，1：在用")
    private Integer stopStatus;
    @ApidocModelProperty(description = "企业评级")
    private Integer enterpriseGrade;
    @ApidocModelProperty(description = "核心企业上级集团")
    private String enterpriseParentId;
    @ApidocModelProperty(description = "企业类别0.核心企业1.供应商，2集团 3 平台")
    private Integer category;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApidocModelProperty(description = "修改时间", validate = "yyyy-MM-dd HH:mm:ss")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;
    @ApidocModelProperty(description = "创建人id")
    private Integer creatorId;
    @ApidocModelProperty(description = "1 表示删除，0 表示未删除")
    @TableField(value = "is_deleted")
    @TableLogic(value = "0", delval = "1")
    private Integer isDeleted;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApidocModelProperty(description = "创建时间，即注册时间", validate = "yyyy-MM-dd HH:mm:ss")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApidocModelProperty(description = "提交认证时间", validate = "yyyy-MM-dd HH:mm:ss")
    private Date certificationTime;
    @ApidocModelProperty(description = "修改人id")
    private Integer updaterId;
    @ApidocModelProperty(description = "部门id")
    private Integer orgId;
    @ApidocModelProperty(description = "备注")
    private String remark;
    @ApidocModelProperty(description = "各核心企业样式")
    private String itemStyle;
    @ApidocModelProperty(description = "获客渠道")
    private String customerChannel;
    @ApidocModelProperty(description = "数据来源： 自建、注册")
    private String dataChannel;
    @ApidocModelProperty(description = "上链地址")
    private String chainAddress;
    @ApidocModelProperty(description = "安心签开户企业id")
    private String openEnterpriseId;
    @ApidocModelProperty(description = "企业冻结状态，0未冻结 1 冻结")
    private Integer enterpriseFreezingStatus;
    @ApidocModelProperty(description = "邀请企业id")
    private String invitationEnterpriseId;
    @ApidocModelProperty(description = "进度状态名称：1 注册账号 2 管理员认证 3 资料完善 4 平台审核 5 打款认证 6 完成认证")
    private Integer progressStatus;
    @ApidocModelProperty(description = "业务类型，1 注册认证，2 修改信息")
    private Integer businessType;
    @ApidocModelProperty(description = "是否最新数据：1 最新数据，0 历史数据")
    private Integer latestStatus;

}
